<?php echo $this->render("head.phtml");?>
<div class='container_24 div_content ui-corner-all'>
  <!-- bread crumbs -->
  <div class='grid_23 bread_crumbs'>
    <div class='left'>
      <a class='crumb' href='/'>首页</a>&nbsp;>>&nbsp;<a class='crumb' href="/category/user-list">用户排行榜</a>&nbsp;>>&nbsp;<a class='crumb' href="/courses/user-content-list?uid=<?php echo $this->user['uid'];?>"><?php echo get_true_value($this->user['username'], $this->user['email']);?></a>
    </div>
    <!-- tags with cateogry -->
    <div class='left margin-left-10px'>
      <?php if (count($this->tags) ==1){?>>>
      <?php }?>
      <?php foreach($this->tags as $tag){?>
      <a class='tag_crumb' href="/category/user-content-list?uid=<?php echo $this->user['uid']?>&tag_id=<?php echo $tag['tag_id']?>"><?php echo $tag['tag']?></a>
      <?php }?>
    </div>
  </div>
  <div class='clear'></div>

<?php

//foreach($this->courses as $course)
foreach($this->paginator as $course)
{
?>
	<div class='search_item'>
	  <div class=' grid_3'>
	    <a href="/video/play?cont_id=<?php echo $course['cont_id'];?>" target="_blank">
	      <img class='search_item_img' src="<?php echo THUMBNAILS_PREFIX.$course['thumb'];?>"/>
	    </a>
	  </div>
	  <div class=' grid_4 title'><a class='a_course_title' target="_blank" href="/video/play?cont_id=<?php echo $course['cont_id'];?>"><?php echo $course['title'];?></a></div>
	  <div class=' grid_10 desc'><?php echo $course['descript'];?></div>
	  <div class=' grid_2 view'><?php echo $course['times'];?></div>
	  <!-- <img src='/img/money.png'/> -->
	  <!-- <div class='grid_2 big-text price ui-corner-all'><?php echo $course["price"];?></div> -->
	  <div class='grid_2 big-text price ui-corner-all'><?php printf('￥%.2f', $course['promotion'] ? $course['dis_price'] : $course['ori_price']);?></div>
	  <!-- rating -->
	  <div class='clear'></div>
	</div>
	<div class='clear'></div>
	<hr class='margin-10px' />
<?php }?>

<div class='clear'></div>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'courses/pagelist.phtml');?>
</div>
<?php echo $this->render("foot.phtml");?>    


